#pragma once

#include <d3d9.h>
#include <d3dx9.h>
#include "../XenMemory/XenMemory.h"
#include "../Input.h"

class XenMap
{
private:
	XenMemory *xenMemory;

	IDirect3DDevice9 *pIDirect3DDevice9;

	int screenWidth;
	int screenHeight;

	static bool mapOpen;

#define DSMAP_LOC  "xenergy/images/maps/dsmap.png"
	LPDIRECT3DTEXTURE9 dsMapTexture;
	LPD3DXSPRITE mapSprite;

#define MAINMAP_LOC  "xenergy/images/maps/mainmap.png"
	LPDIRECT3DTEXTURE9 mainMapTexture;
	//LPD3DXSPRITE mainMapSprite;

#define POINTER_LOC  "xenergy/images/pointer.png"
	LPDIRECT3DTEXTURE9 pointerTexture;
	LPD3DXSPRITE pointerSprite;

public:
	XenMap(IDirect3DDevice9 *pIDirect3DDevice9);

	void Initialize();
	void Render();
	void ProcessInput();
	void Release();
};